const axios = require('axios');
const Qs = require("qs");　　//qs是一个url参数转化（parse/stringify）的js库
function request(obj) {
   return axios({
        method: obj.method || 'GET',
        headers: obj.header,
        url: obj.url,
        data: Qs.stringify(obj.data),
     })
    //  console.log(res);

}

module.exports = {
    request:request
}